﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CampWeek5__Book_Project_.Data.Model
{
    public class Author
    {
        public int Id { get; set; }
        [Required]
        public string AuthorName { get; set; }
        [Column(TypeName = "datetime2")]
        public DateTime DateOfBirth { get; set; }
        [Column(TypeName = "datetime2")]
        public DateTime? DateOfDeath { get; set; }
        public string AuthorCountry { get; set; }
        public string AuthorImg { get; set; }
        public string AuthorBio { get; set; }
        public int TimesViewed { get; set; }
        public DateTime? DateDeleted { get; set; }

        public virtual List<Author_Tags> Author_Tags { get; set; }
        public virtual List<Book> Books { get; set; }
    }
}